﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace OperGui.Models
{
    //Tile 's data mapping
    public class Model
    {
        private string name;
        private int errors;
        private Color colorDisplay;

        public string Name { get { return name; } set { name = value; } }
        public int Errors
        {
            set
            {
                errors = value;
                if (value > 0) colorDisplay = Color.Red; else colorDisplay = Color.LightGray;
            }
            get { return errors; }
        }
        public Color CurrentColor { get { return colorDisplay; } }


        public Model(string name)
        { Name = name; Errors = 0; }
    }
}
